﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace Comp_Geo
{
    public abstract class GameObject
    {
        #region Members

        Texture2D textureImage;

        Vector2 startPosition;
        Vector2 currPosition;

        #endregion

        #region Paramaters

        public Vector2 CurrPosition { get { return currPosition; } set { currPosition = value; } }

        #endregion

        #region Initilization

        public GameObject(Texture2D textureImage, Vector2 startPosition)
        {
            this.textureImage = textureImage;
            this.startPosition = startPosition;
            this.currPosition = startPosition;
        }

        #endregion

        #region Update and Draw

        public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(textureImage, currPosition, Color.White);
        }

        #endregion
    }
}
